package com.opesoft.app.system.action;

import com.opesoft.app.system.model.DictionaryConfig;
import com.opesoft.pf.jpa.SimpleQL;
import com.opesoft.pf.page.QueryForm;
import com.opesoft.pf.page.ServerQueryResult;

public class DictionaryConfigQueryForm extends DictionaryConfig implements QueryForm
{
	public ServerQueryResult query()
	{
		SimpleQL ql=new SimpleQL("DictionaryConfig");
		ql.addStringLikeCondition("name",this.getName());
		ql.addStringLikeCondition("code",this.getCode());
		ql.setOrderBy(new String[]{"id desc"});

		return new ServerQueryResult(ql.countQL(),ql.queryQL());
	}
}
